1. /* sloslrem.cpp by K.Tsuru */
  2. // function ID = 230 DRADIX
  3. /***************************
  4. SLong class
  5. Provides remainder m % n.
  6. [Notice]
  7. Using the relations
  8. m=n*q+r (q = m/n)
  9. r = m-n*q
  10. i.e.
  11. m%n = m - n*(m/n)
  12. can be evaluated.
  13. ****************************/
  14. #ifndef SN_H
  15. #include "sn.h"
  16. #endif
  17. SLong operator%(const SLong& m, const SLong& n){
  18. Ldiv_t r = LLDiv(m, n, 1);
  19. return r.rem;
  20. }

sloslrem.cpp : last modifiled at 2016/05/01 10:23:44(415 bytes)
created at 2017/10/07 10:26:50
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).